<?php

    //echo $this->Session->flash('auth');

    echo $this->Form->create('Reservation',array('controller' => 'reservations','action' => 'create'));
    
    echo $this->Form->button(__('Search client',true),array(
       'type'   => 'button',
       'id' => 'client_list'
    ));
    
    echo $this->Form->input('Client.full_name',array(
        'type' => 'text',
        'label' => __('Full Name',true)
    ));
    
    echo $this->Form->input('Client.email',array(
        'type' => 'text',
        'label' => __('Email',true)
    ));
    
    echo $this->Form->input('Client.address',array(
        'type' => 'text',
        'label' =>  __('Address',true)
    ));
    
    echo $this->Form->input('Client.phone',array(
        'type' => 'text',
        'label' =>  __('Phone',true)
    ));
    
    echo $this->Form->input('Client.personal_id_type',array(
        'type' => 'select',
        'options' => $clientIdType,
        'label' =>  __('Type',true)
    ));
    
    echo $this->Form->input('Client.personal_id_number',array(
        'type' => 'text',
        'label' =>  __('Serial Number',true)
    ));
    
    echo $this->Form->input('bank_account',array(
        'type' => 'text',
        'label' =>  __('Bank Account',true)
    ));
    
    echo $this->Form->input('source',array(
        'type' => 'hidden',
        'value' => 1
    ));
    
    echo $this->Form->input('client_id',array(
        'type' => 'hidden',
        'value' => null
    ));
    
    
?>

<div class="window container">
    <table id="clients_grid"></table>
    <div id="clients_pager"></div>
</div>

<?php
    
    
    
    
    echo $this->Form->end('Create');
    echo $this->Form->end('Cancel');

?>